package personal.wang.cf;

import java.time.Duration;

/**
 * @className: RetryStrategy
 * @Description:
 * @Author: wangyifei
 * @Date: 2025/3/27 10:48
 */
public interface RetryStrategy {
    /** @return the number of remaining retries */
    int getNumRemainingRetries();

    /** @return the current delay if we need to retry */
    Duration getRetryDelay();

    /** @return the next retry strategy to current delay if we need to retry */
    RetryStrategy getNextRetryStrategy();
}
